package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketKeywordSort;

import cn.taoticket.fallback.TaoticketKeywordSortClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-item-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketKeywordSortClientFallBack.class)
public interface RestTaoticketKeywordSortClient {

@RequestMapping(value = "/getTaoticketKeywordSortById",method = RequestMethod.POST)
public TaoticketKeywordSort getTaoticketKeywordSortById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketKeywordSortListByMap",method = RequestMethod.POST)
public List<TaoticketKeywordSort>	getTaoticketKeywordSortListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketKeywordSortCountByMap",method = RequestMethod.POST)
public Integer getTaoticketKeywordSortCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketKeywordSort",method = RequestMethod.POST)
public Integer qdtxAddTaoticketKeywordSort(@RequestBody TaoticketKeywordSort taoticketKeywordSort)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketKeywordSort",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketKeywordSort(@RequestBody TaoticketKeywordSort taoticketKeywordSort)throws Exception;
}
